{extend name="base" /}

{block name="css"}
  <link rel="stylesheet" href="__HCSS__/goods/goods_details.css">
{/block}

{block name="body"}

<!-- Main Container  -->
<div class="main-container container">
	<ul class="breadcrumb">
		<li><a href="#"><i class="fa fa-home"></i></a></li>
		<li><a href="#">洗衣机</a></li>
		<li><a href="#">商品详情</a></li>

	</ul>

	<div class="row">
		<!--Middle Part Start-->
		<div id="content" class="col-md-12 col-sm-12">

			<div class="product-view row">
				<div class="left-content-product col-lg-10 col-xs-12">
					<div class="row">
						<div class="content-product-left class-honizol col-sm-6 col-xs-12 ">
							<div class="large-image">
								<img itemprop="image" class="product-image-zoom" src="{$goodsInfo.goods_image|show_image="goods",###}" data-zoom-image="{$goodsInfo.goods_image|show_image="goods",###}" title="Bint Beef" alt="Bint Beef">
							</div>

							<div id="thumb-slider" class="owl-theme owl-loaded owl-drag full_slider">
								<a data-index="0" class="img thumbnail " data-image="{$goodsInfo.goods_image|show_image="goods",###}" title="Bint Beef">
									<img id="goods-img" src="{$goodsInfo.goods_image|show_image="goods",###}" title="Bint Beef" alt="Bint Beef">
								</a>
								{volist name="goodsAlbumInfo" id="v"}
								<a data-index="{$v.id}" class="img thumbnail " data-image="{$v.image|show_image="goods_album",###}" title="Bint Beef">
									<img src="{$v.image|show_image="goods_album",###}" title="Bint Beef" alt="Bint Beef">
								</a>
								{/volist}

							</div>

						</div>

						<div class="content-product-right col-sm-6 col-xs-12">
							<div class="title-product">
								<h1 id="goods-name">{$goodsInfo.goods_name}</h1>
							</div>
							<!-- Review ---->
							<div class="box-review form-group">
								<div class="ratings">
									<div class="rating-box">
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
									</div>
								</div>

								<a class="reviews_button" href="" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">评价</a>	| 
								<a class="write_review_button" href="" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">写平论</a>
							</div>

							<div class="product-label form-group">
								<div class="product_page_price price" itemprop="offerDetails" itemscope="" itemtype="http://data-vocabulary.org/Offer">
									<span class="price-new" id="goods-price" itemprop="price">{$goodsInfo.now_price}</span>
									<input type="hidden" id="goods-spec-price" value='{$spec_goods_price}' />
									<input type="hidden" id="goods-id" value='{$goodsInfo.id}' />
									<input type="hidden" id="get-price-url" value="{:url('home/Goods/ajaxGetGoodsPrice')}" />
									<span class="price-old">{$goodsInfo.original_price}</span>
								</div>
							</div>

							<div class="product-box-desc">
								<div class="inner-box-desc">
									<div class="reward"><span>奖励经验:</span> 400 </div>
									<div class="brand"><span>品牌:</span><a href="#"> 松下 </a></div>
									<div class="model"><span>货号:</span> Product 15 </div>
									<div class="reward"><span>奖励点数:</span> 100 </div>
								</div>
							</div>


							<div id="product">

							{if condition="$filter_spec"}
								<h4>购买选项</h4>
								<!-- goods-spec-key -->
								<input type="hidden" id="goods-spec-key" value="">

								<div id="top" class="col-md-12">
									{foreach name="filter_spec" item="v" key="k" }
									<p>
										<font>{$k}</font>
										{foreach name="v" item="v1" key="k1" }
										<!-- 隐藏单选框 -->
										<input type="radio" style="display: none" rel="{$v1.item}" name="goods_spec[{$k}]" value="{$v1.item_id}" />
										<!-- 样式框 -->
										<span class="select-filter">{$v1.item}</span>
										{/foreach}
									</p>
									{/foreach}
								</div>
							{else /}
								<!-- goods-spec-key -->
								<input type="hidden" id="goods-spec-key" value="0">
							{/if}


								<div class="form-group box-info-product">
									<div class="option quantity">
										<div class="input-group quantity-control" unselectable="on" style="-webkit-user-select: none;">
											<label>数量</label>
											<!-- 购买量 -->
											<input class="form-control" id="goods-quantity" type="text" name="quantity"
											value="1">
											<!-- 商品id -->
											<input type="hidden" id="goods-id" name="goods_id" value="{$goodsInfo.id}">
											<span class="input-group-addon product_quantity_down">−</span>
											<span class="input-group-addon product_quantity_up">+</span>
										</div>
									</div>

									<div class="cart">
										<input type="button" value="添加到购物车" class="btn btn-mega btn-lg addToCart"  proc-url="{:url('home/Cart/addToCart')}" />
									</div>


									<div class="add-to-links wish_comp">
										<ul class="blank list-inline">
											<li class="wishlist">
												<a class="icon" data-toggle="tooltip" title=""
												onclick="wishlist.add('50');" data-original-title="添加到我的收藏"><i class="fa fa-heart"></i>
											</a>
										</li>
										<li class="compare">
											<a class="icon" data-toggle="tooltip" title=""
											onclick="compare.add('50');" data-original-title="比较"><i class="fa fa-exchange"></i>
										</a>
									</li>
								</ul>
							</div>

						</div>

					</div>
					<!-- end box info product -->

				</div>
			</div>
		</div>

		<section class="col-lg-2 hidden-sm hidden-md hidden-xs slider-products">
			<div class="module col-sm-12 four-block">
				<div class="modcontent clearfix">
					<div class="policy-detail">
						<div class="banner-policy">
							<div class="policy policy1">
								<a href="#"> <span class="ico-policy">&nbsp;</span>	7 天
									<br> 无条件退款 </a>
								</div>
								<div class="policy policy2">
									<a href="#"> <span class="ico-policy">&nbsp;</span>	同城免费送货 </a>
								</div>
								<div class="policy policy3">
									<a href="#"> <span class="ico-policy">&nbsp;</span>	保证最低价格 </a>
								</div>
								<div class="policy policy4">
									<a href="#"> <span class="ico-policy">&nbsp;</span>	购物保障 </a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</section>
		</div>

		<!-- Product Tabs -->
		<div class="producttab ">
			<div class="tabsslider  vertical-tabs col-xs-12">
				<ul class="nav nav-tabs col-lg-2 col-sm-3">
					<li class="active"><a data-toggle="tab" href="#tab-1">商品描述</a></li>
					<li class="item_nonactive"><a data-toggle="tab" href="#tab-review">评价 (235)</a></li>
					<li class="item_nonactive"><a data-toggle="tab" href="#tab-4">标签</a></li>
					<li class="item_nonactive"><a data-toggle="tab" href="#tab-5">属性参数</a></li>
				</ul>
				<div class="tab-content col-lg-10 col-sm-9 col-xs-12">

					<!-- 简单描述 -->
					<div id="tab-1" class="tab-pane fade active in">
						{$goodsInfo.goods_content}
					</div>

					<!-- 评价 -->
					<div id="tab-review" class="tab-pane fade">
						<form>
							<div id="review">
								<table class="table table-striped table-bordered">
									<tbody>
										<tr>
											<td style="width: 50%;"><strong>路人甲2</strong></td>
											<td class="text-right">29/05/2017</td>
										</tr>
										<tr>
											<td colspan="2">
												<p>非常好用，好评！</p>
												<div class="ratings">
													<div class="rating-box">
														<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
														<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
														<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
														<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
														<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
													</div>
												</div>
											</td>
										</tr>
									</tbody>
								</table>
								<div class="text-right"></div>
							</div>
							<h2 id="review-title">写点评论</h2>
							<div class="contacts-form" id="comment_form">
								{if condition="$Think.session.user_id"}
								<form id="ajax_comment_form" >
									<input type="hidden" name="goods_id" value="{$goodsInfo.id}" />

									<div class="form-group">
										<b>评分:</b>&nbsp;
										一星&nbsp;<input type="radio" name="comment_rank" value="1"> &nbsp;
										二星&nbsp;<input type="radio" name="comment_rank" value="2"> &nbsp;
										三星&nbsp;<input type="radio" name="comment_rank" value="3"> &nbsp;
										四星&nbsp;<input type="radio" name="comment_rank" value="4"> &nbsp;
										五星&nbsp;<input type="radio" name="comment_rank" value="5"> &nbsp;
									</div>

									<div class="form-group"> <span class="icon icon-bubbles-2"></span>
										<textarea class="form-control textarea" name="content" rows="5" placeholder="评论，请不要超过200字"></textarea>
									</div> 

									<div class="form-group"> 
										<input type="text" class="form-control" name="impression" placeholder="商品印象，多个请用逗号隔开">
									</div>

									<div class="buttons clearfix"><a href="javascript:;" class="btn buttonGray submit-comment" data-url="{:url('home/GoodsComment/CommentHandle')}">提交</a></div>
								</form>
								{else/}
									<a href="javascript:;" class="login_return" login-url="{:url('home/Login/index')}" save-url="{:url('home/Login/saveAndLogin')}">登录</a>之后就可以评论！
								{/if}
							</div>
						</form>
					</div>

					<!-- 标签 -->
					<div id="tab-4" class="tab-pane fade">
						<a href="#">Monitor</a>,
						<a href="#">Apple</a>
					</div>

					<!-- 属性参数 -->
					<div id="tab-5" class="tab-pane fade">
						{volist name="goodsAttrInfo2" id="v"}
							{$v.attr_name} : {$v.value} |
						{/volist}
					</div>
				</div>
			</div>
		</div>
		<!-- //Product Tabs -->






		<!-- 相关产品 -->
		<div class="related titleLine products-list grid module ">
		<h3 class="modtitle"> 相关产品  </h3>
			<div class="releate-products ">



				<div class="product-layout">
					<div class="product-item-container">
						<div class="left-block">
							<div class="product-image-container second_img ">
								<img  src="__TEMPLATE__/image/demo/shop/product/e11.jpg"  title="三星电视60&quot;曲屏" class="img-responsive" />
								<img  src="__TEMPLATE__/image/demo/shop/product/e12.jpg"  title="三星电视60&quot;曲屏" class="img_0 img-responsive" />
							</div>
							<!--Sale Label-->
							<span class="label label-sale">Sale</span>
							<!--full quick view block-->
							<a class="quickview iframe-link visible-lg" data-fancybox-type="iframe"  href="#">  Quickview</a>
							<!--end full quick view block-->
						</div>


						<div class="right-block">
							<div class="caption">
								<h4><a href="product.html">三星电视60&quot;曲屏</a></h4>		
								<div class="ratings">
									<div class="rating-box">
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
									</div>
								</div>

								<div class="price">
									<span class="price-new">$74.00</span> 
									<span class="price-old">$122.00</span>		 
									<span class="label label-percent">-40%</span>    
								</div>
								<div class="description item-desc hidden">
									<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l..</p>
								</div>
							</div>

							<div class="button-group">
								<button class="addToCart" type="button" data-toggle="tooltip" title="添加到购物车" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">添加到购物车</span></button>
								<button class="wishlist" type="button" data-toggle="tooltip" title="添加到我的收藏" onclick="wishlist.add('42');"><i class="fa fa-heart"></i></button>
								<button class="compare" type="button" data-toggle="tooltip" title="比较" onclick="compare.add('42');"><i class="fa fa-exchange"></i></button>
							</div>
						</div><!-- right block -->

					</div>
				</div>



				<div class="product-layout ">
					<div class="product-item-container">
						<div class="left-block">
							<div class="product-image-container second_img ">
								<img  src="__TEMPLATE__/image/demo/shop/product/11.jpg"  title="三星电视60&quot;曲屏" class="img-responsive" />
								<img  src="__TEMPLATE__/image/demo/shop/product/10.jpg"  title="三星电视60&quot;曲屏" class="img_0 img-responsive" />

							</div>
							<!--Sale Label-->
							<span class="label label-sale">Sale</span>
							<!--full quick view block-->
							<a class="quickview iframe-link visible-lg" data-fancybox-type="iframe"  href="#">  Quickview</a>
							<!--end full quick view block-->
						</div>


						<div class="right-block">
							<div class="caption">
								<h4><a href="product.html">佳能EOS63</a></h4>		
								<div class="ratings">
									<div class="rating-box">
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
									</div>
								</div>

								<div class="price">
									<span class="price-new">$74.00</span> 
									<span class="price-old">$122.00</span>		 
									<span class="label label-percent">-40%</span>    
								</div>
								<div class="description item-desc hidden">
									<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l..</p>
								</div>
							</div>

							<div class="button-group">
								<button class="addToCart" type="button" data-toggle="tooltip" title="Add to Cart" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">Add to Cart</span></button>
								<button class="wishlist" type="button" data-toggle="tooltip" title="Add to Wish List" onclick="wishlist.add('42');"><i class="fa fa-heart"></i></button>
								<button class="compare" type="button" data-toggle="tooltip" title="Compare this Product" onclick="compare.add('42');"><i class="fa fa-exchange"></i></button>
							</div>
						</div><!-- right block -->

					</div>
				</div>




				<div class="product-layout ">
					<div class="product-item-container">
						<div class="left-block">
							<div class="product-image-container second_img ">
								<img  src="__TEMPLATE__/image/demo/shop/product/35.jpg"  title="Apple Cinema 30&quot;" class="img-responsive" />
								<img  src="__TEMPLATE__/image/demo/shop/product/34.jpg"  title="Apple Cinema 30&quot;" class="img_0 img-responsive" />
							</div>
							<!--Sale Label-->
							<span class="label label-sale">Sale</span>
							<!--full quick view block-->
							<a class="quickview iframe-link visible-lg" data-fancybox-type="iframe"  href="#">  Quickview</a>
							<!--end full quick view block-->
						</div>


						<div class="right-block">
							<div class="caption">
								<h4><a href="product.html">Apple Cinema 30&quot;</a></h4>		
								<div class="ratings">
									<div class="rating-box">
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
									</div>
								</div>

								<div class="price">
									<span class="price-new">$74.00</span> 
									<span class="price-old">$122.00</span>		 
									<span class="label label-percent">-40%</span>    
								</div>
								<div class="description item-desc hidden">
									<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l..</p>
								</div>
							</div>

							<div class="button-group">
								<button class="addToCart" type="button" data-toggle="tooltip" title="Add to Cart" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">Add to Cart</span></button>
								<button class="wishlist" type="button" data-toggle="tooltip" title="Add to Wish List" onclick="wishlist.add('42');"><i class="fa fa-heart"></i></button>
								<button class="compare" type="button" data-toggle="tooltip" title="Compare this Product" onclick="compare.add('42');"><i class="fa fa-exchange"></i></button>
							</div>
						</div><!-- right block -->

					</div>
				</div>




				<div class="product-layout ">
					<div class="product-item-container">
						<div class="left-block">
							<div class="product-image-container second_img ">
								<img  src="__TEMPLATE__/image/demo/shop/product/14.jpg"  title="Apple Cinema 30&quot;" class="img-responsive" />
								<img  src="__TEMPLATE__/image/demo/shop/product/15.jpg"  title="Apple Cinema 30&quot;" class="img_0 img-responsive" />
							</div>
							<!--Sale Label-->
							<span class="label label-sale">Sale</span>
							<!--full quick view block-->
							<a class="quickview iframe-link visible-lg" data-fancybox-type="iframe"  href="#">  Quickview</a>
							<!--end full quick view block-->
						</div>


						<div class="right-block">
							<div class="caption">
								<h4><a href="product.html">Apple Cinema 30&quot;</a></h4>		
								<div class="ratings">
									<div class="rating-box">
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>
										<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>
									</div>
								</div>

								<div class="price">
									<span class="price-new">$74.00</span> 
									<span class="price-old">$122.00</span>		 
									<span class="label label-percent">-40%</span>    
								</div>
								<div class="description item-desc hidden">
									<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l..</p>
								</div>
							</div>

							<div class="button-group">
								<button class="addToCart" type="button" data-toggle="tooltip" title="Add to Cart" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">Add to Cart</span></button>
								<button class="wishlist" type="button" data-toggle="tooltip" title="Add to Wish List" onclick="wishlist.add('42');"><i class="fa fa-heart"></i></button>
								<button class="compare" type="button" data-toggle="tooltip" title="Compare this Product" onclick="compare.add('42');"><i class="fa fa-exchange"></i></button>
							</div>
						</div><!-- right block -->

					</div>
				</div>



			</div>
		</div>

		<!-- end Related  Products-->


	</div>


</div>
<!--Middle Part End-->
</div>
<!-- //Main Container -->


{/block}

{block name="script"}
	<script type="text/javascript" src="__HJS__/goods/goods_details.js"></script>
{/block}

